2020-2021 Sunseeker Telemetry and Lighting System
pmap_ex2_outputTimerBSignal.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 

Variables

const uint8_t port_mapping []
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 85 of file pmap_ex2_outputTimerBSignal.c.

References __no_operation(), and port_mapping.

Variable Documentation

◆ port_mapping

const uint8_t port_mapping[]
Initial value:
= {
PM_TB0CCR1A,
PM_TB0CCR1A,
PM_TB0CCR2A,
PM_TB0CCR2A,
PM_TB0CCR3A,
PM_TB0CCR3A,
PM_NONE,
PM_NONE,
}

MSP430F5529 Demo - Port Mapping single function to multiple pins; Single runtime configuration. Description: Port 4 is port mapped to output TIMER_B digital signals. TBCCR1-3 generate different DutyCycles and have been output on multiple pins. ACLK = REFO~32kHz; MCLK = SMCLK = default DCO;

            MSP430F5529
        ------------------
    /|\|                  |
     | |                  |
     --|RST               |
       |     P4.0(TB0CCR1)|--> 25%
       |     P4.1(TB0CCR1)|--> 25%
       |     P4.2(TB0CCR2)|--> 50%
       |     P4.3(TB0CCR2)|--> 50%
       |     P4.4(TB0CCR3)|--> 75%
       |     P4.5(TB0CCR3)|--> 75%
       |     P4.6(default)|--> DVSS
       |     P4.7(default)|--> DVSS

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • PMAP module
  • GPIO Port peripheral
  • UCS module
  • Timer module

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • None.

Definition at line 73 of file pmap_ex2_outputTimerBSignal.c.

Referenced by main().